package com.lovo.util;

/**
 * 服务器返回消息封装类
 */
public class CodeMsg {
    private int code;
    private String msg;

    public static CodeMsg SERVER_ERROR = new CodeMsg(500, "服务端异常");
    public static CodeMsg PASSWORD_ERROR = new CodeMsg(400, "密码不匹配异常");
    public static CodeMsg NOTFOUND_ERROR = new CodeMsg(404, "没有找到异常");

    private CodeMsg(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}